<!DOCTYPE html>
<html lang="">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title><%= htmlWebpackPlugin.options.title %></title>

    <!--    传统的情况下引用-->
    <%if(process.env.NODE_ENV === 'production'){ %>
    <script type="text/javascript" src="/eel.js"></script>
    <%}else{%>
    <script type=text/javascript src="http://localhost:9000/eel.js"></script>
    <script>
          window.eel.set_host("ws://localhost:9000");
    </script>
    <%}%>
</head>
<body>
<noscript>
    <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
        Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>

<script>

    // 将js中的函数暴露给python,这个貌似不怎么需要用
    eel.expose(js_fun);

    function js_fun(msg) {
        alert('你好啊' + msg)
    }
</script>

</html>
